(function () {
    //聊天程序 ，暂未开发
    window.main = function () {
        var app = this;
        app.checkSessionServiceName = "mission.account.checksession";
        app.loginServiceName = "";


    }
    var _current_dialog = null;
    var _prevent_close = false;

    var showInToolBox = function (dialog) {
        if (_current_dialog) {
            _prevent_close = true;
            _current_dialog.close();
        }
        _current_dialog = dialog;
        document.getElementById("tpl").setAttribute("width", "70%");
        document.getElementById("toolbox").style.width = '30%';

        dialog.showDialog(document.getElementById("toolbox"));
    }

    var closeToolBox = function () {
        if (_prevent_close) {
            _prevent_close = false;
            return;
        }
        document.getElementById("tpl").setAttribute("width", "100%");
        document.getElementById("toolbox").style.width = 0;
        return
    } 
})()